// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   CategoryServiceImpl.java

package dale.web.category.service;

import dale.web.category.domain.Category;
import dale.web.category.repository.CategoryRepository;
import java.util.List;

// Referenced classes of package dale.web.category.service:
//            CategoryService

public class CategoryServiceImpl
    implements CategoryService
{

    public CategoryServiceImpl(CategoryRepository repository)
    {
        this.repository = repository;
    }

    public List search(Category category)
    {
        return repository.list(category);
    }

    public Category detail(String categoryID)
    {
        Category item = repository.item(categoryID);
        return item;
    }

    public void create(Category category)
    {
        repository.insert(category);
    }

    public void modify(Category category)
    {
        repository.update(category);
    }

    public void delete(String categoryID)
    {
        repository.delete(categoryID);
    }

    private CategoryRepository repository;
}
